#include "tcp_client.hpp"

void Usage(std::string proc) {
    std::cout << "Usage: " << "\n\t" << proc << " svr_ip svr_port" << std::endl;
}

int main(int argc, char *argv[]) {
    if (argc != 3) {
        Usage(argv[0]);
        return 1;
    }
    uint16_t port = atoi(argv[2]);
    std::string ip = argv[1];
    ns_tcpclient::TcpClient cli(port, ip);
    cli.InitTcpClient();
    cli.Start();

    return 0;
}
